<template>
    <div class="box">
        <h2>Child2-组件</h2>
        <div>abc: {{ abc }}</div>
        <!-- <button @click="$emit('changeAbc','高圆圆')">修改父组件数据</button> -->
        <button @click="$emit('update:abc','高圆圆')">修改父组件的数据</button>
    </div>
</template>

<script>
export default {
    name: "Child2",
    props: ['abc']
}
</script>

<style scoped>

</style>